package com.example.demo.base;

/**
 * Created with IntelliJ IDEA.
 *
 * @Auther: wangtuo
 * @Date: 2020/07/13/17:43
 * @Description:
 * 系统处理异常类
 */
public class SystemException extends RuntimeException {

    private static final long seriavlVersionUID =1095242212086237834L;

    protected Object errorCode;
    protected Object[] args;

    public SystemException(){
        super();
    }


    public SystemException(String message,Throwable cause){
        super(message,cause);
    }

    public SystemException(String message){
        super(message);
    }


    public SystemException(String message,Object[] args,Throwable  cause){
        super(message,cause);
        this.args=args;
    }


    public SystemException(String message,Object errorCode,Throwable  cause){
        super(message,cause);
        this.errorCode=errorCode;
    }

    public SystemException(Object errorCode,String message){
        super(message);
        this.errorCode=errorCode;
    }


    public SystemException(Object errorCode,String message,Object[] args,Throwable  cause){
        super(message,cause);
        this.args=args;
        this.errorCode=errorCode;
    }
    public SystemException(Object errorCode,String message,Object[] args){
        super(message);
        this.args=args;
        this.errorCode=errorCode;
    }

    public SystemException(Throwable  cause){
        super(cause);
    }


    public Object getErrorCode() {
        return errorCode;
    }

    public void setErrorCode(Object errorCode) {
        this.errorCode = errorCode;
    }

    public Object[] getArgs() {
        return args;
    }

    public void setArgs(Object[] args) {
        this.args = args;
    }
}
